package com.bbcare.followup.plat.entity;

import java.io.Serializable;

import javax.persistence.Entity;

import com.bbcare.comm.DateUtil;

/**
 * @name: 患者任务信息实体类
 * @author: DemonLee
 * @createTime: 2017.4.13
 * @description: 患者任务基本信息等
 * @modify:
 * 
 */

@Entity
public class PatientTask implements Serializable {
    private static final long serialVersionUID = 1L;
    // 患者任务id
    private String id;
    // 患者id
    private String userId;
    // 患者方案id
    private String ptSchemeid;
    // 队列id
    private String queueId;
    // 任务名称
    private String taskName;
    // 任务描述
    private String taskIntro;
    // 任务序号，0为建档，其他从1开始递增
    private int seqNo;
    // 执行类型 0：应用后触发 1：纠正年龄触发 2：出生年龄触发 3：出院后触发
    private String executeType;
    // 任务执行时间
    private String executeTime;
    // 任务窗口期
    private int windowDay;
    // 任务警戒期
    private int warnDay;
    // 距离建档的执行天数 如纠正胎龄多长时间开始执行本次随访
    private int executeDay;
    // 随访提醒方式 0:无提醒 1:app应用 2:短信 3:app和短信同时提醒
    private String informFlag;
    // 创建人id
    private String authorId;
    // 更新时间
    private String updateTime;
    // 创建时间
    private String createTime;
    // 开始时间
    private String beginTime;
    // 结束时间
    private String endTime;
    // 任务状态
    private String taskStatus;
    // 更新流水
    private String updateAccept;
    // 更新人id
    private String updateAuthor;
    // 门诊地址
    private String executeAddress;
    // 门诊录入日期（即任务完成日期）,任务未开始或过期，该值为空
    private String finishDate;
    // 门诊指导建议
    private String taskNote;
    // 下次门诊时间
    private String nextDate;
    // 下次门诊地址
    private String nextAddress;
    // 更新人姓名，即门诊医生姓名
    private String updateAuname;
    // 任务类型：0方案默认计划任务，1方案新增临时任务，2其他实时(临时)任务
    private String taskType;
    // 随访短信提醒次数
    private int smsNum;
    // 下次任务id
    private String nextTaskId;
    // 主诉登记规则：0 通用任务内容，整个周期内都是相同的问卷；1 月龄规则，每个月龄的主诉登记内容不相同......待扩展
    private String ruleType;
    // 门诊完成时间（打印时间）
    private String finishTime;
    // 任务记录名称
    private String taskRecordName;
    // 审核状态，1正常 4待审核 5审核不通过
    private String auditStatus;
    // 是否临时随访
    private String temporaryTask;
    //队列名称
    private String queueName;

    public String getQueueName() {
        return queueName;
    }

    public void setQueueName(String queueName) {
        this.queueName = queueName;
    }

    public String getTemporaryTask() {
		return temporaryTask;
	}

	public void setTemporaryTask(String temporaryTask) {
		this.temporaryTask = temporaryTask;
	}

	public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setPtSchemeid(String ptSchemeid) {
        this.ptSchemeid = ptSchemeid;
    }

    public String getPtSchemeid() {
        return ptSchemeid;
    }

    public String getQueueId() {
        return queueId;
    }

    public void setQueueId(String queueId) {
        this.queueId = queueId;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskIntro(String taskIntro) {
        this.taskIntro = taskIntro;
    }

    public String getTaskIntro() {
        return taskIntro;
    }

    public void setSeqNo(int seqNo) {
        this.seqNo = seqNo;
    }

    public int getSeqNo() {
        return seqNo;
    }

    public void setExecuteType(String executeType) {
        this.executeType = executeType;
    }

    public String getExecuteType() {
        return executeType;
    }

    public String getExecuteTime() {
        return executeTime;
    }

    public void setExecuteTime(String executeTime) {
        this.executeTime = executeTime;
    }

    public void setWindowDay(int windowDay) {
        this.windowDay = windowDay;
    }

    public int getWindowDay() {
        return windowDay;
    }

    public void setWarnDay(int warnDay) {
        this.warnDay = warnDay;
    }

    public int getWarnDay() {
        return warnDay;
    }

    public void setExecuteDay(int executeDay) {
        this.executeDay = executeDay;
    }

    public int getExecuteDay() {
        return executeDay;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = DateUtil.getTimeStampSec(updateTime);
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = DateUtil.getTimeStampSec(createTime);
    }

    public String getCreateTime() {
        return createTime;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(String taskStatus) {
        this.taskStatus = taskStatus;
    }

    public String getUpdateAccept() {
        return updateAccept;
    }

    public void setUpdateAccept(String updateAccept) {
        this.updateAccept = updateAccept;
    }

    public String getUpdateAuthor() {
        return updateAuthor;
    }

    public void setUpdateAuthor(String updateAuthor) {
        this.updateAuthor = updateAuthor;
    }

    public String getInformFlag() {
        return informFlag;
    }

    public void setInformFlag(String informFlag) {
        this.informFlag = informFlag;
    }

    public String getExecuteAddress() {
        return executeAddress;
    }

    public void setExecuteAddress(String executeAddress) {
        this.executeAddress = executeAddress;
    }

    public String getFinishDate() {
        return finishDate;
    }

    public void setFinishDate(String finishDate) {
        this.finishDate = finishDate;
    }

    public String getTaskNote() {
        return taskNote;
    }

    public void setTaskNote(String taskNote) {
        this.taskNote = taskNote;
    }

    public String getNextDate() {
        return nextDate;
    }

    public void setNextDate(String nextDate) {
        this.nextDate = DateUtil.getTimeStampSec(nextDate);
    }

    public String getNextAddress() {
        return nextAddress;
    }

    public void setNextAddress(String nextAddress) {
        this.nextAddress = nextAddress;
    }

    public String getUpdateAuname() {
        return updateAuname;
    }

    public void setUpdateAuname(String updateAuname) {
        this.updateAuname = updateAuname;
    }

    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }

    public int getSmsNum() {
        return smsNum;
    }

    public void setSmsNum(int smsNum) {
        this.smsNum = smsNum;
    }

    public String getNextTaskId() {
        return nextTaskId;
    }

    public void setNextTaskId(String nextTaskId) {
        this.nextTaskId = nextTaskId;
    }

    public String getRuleType() {
        return ruleType;
    }

    public void setRuleType(String ruleType) {
        this.ruleType = ruleType;
    }

    public String getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(String finishTime) {
        this.finishTime = finishTime;
    }

    public String getTaskRecordName() {
        return taskRecordName;
    }

    public void setTaskRecordName(String taskRecordName) {
        this.taskRecordName = taskRecordName;
    }

    public String getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(String auditStatus) {
        this.auditStatus = auditStatus;
    }
}
